package com.mtsmda.study.spring.spring_core.output;

import com.mtsmda.study.spring.spring_core.output.impl.CSVOutputGenerator;
import com.mtsmda.study.spring.spring_core.output.interfaces.IOutputGenerator;

public class OutputHelper {

	private IOutputGenerator iOutputGenerator;

	public OutputHelper() {
		iOutputGenerator = new CSVOutputGenerator();
	}

	public OutputHelper(IOutputGenerator iOutputGenerator) {
		this.iOutputGenerator = iOutputGenerator;
	}

	public void generate() {
		this.iOutputGenerator.generateOutput();
	}

	public IOutputGenerator getiOutputGenerator() {
		return iOutputGenerator;
	}

	public void setiOutputGenerator(IOutputGenerator iOutputGenerator) {
		this.iOutputGenerator = iOutputGenerator;
	}

}